<template>
    <el-radio-group v-bind="$attrs" @input="$emit('input', $event)">
		<template v-for="item in list">
        <el-radio :label="item.value">{{ item.label }}</el-radio>
		</template>
    </el-radio-group>
</template>

<script>
export default {
    name: "radiosOption",
    props: {
        list: {
            type: Array,
            default: () => {
                return [
                    {
                        label: '是',
                        value: 1
                    },
                    {
                        label: '否',
                        value: 0
                    }
                ];
            }
        }
    },
}
</script>

<style scoped>

</style>